//
//  HomeModel.swift
//  77Club
//
//  Created by Apple on 2024/8/26.
//

import Foundation

struct ClubLaunchModel: Convertible {

    var image = ""
    var logo = ""
}

struct ClubHomeConfigModel: Convertible {
    
    var index_top:[ClubHomeIndexTopModel] = []
    var onelogin = ""
    var qqlogin = ""
    var wxlogin = ""
    var shiwan_appid = ""
    var shiwan_key = ""
}

struct ClubHomeIndexTopModel: Convertible {

    var name = ""
    var type = ""
    var status = false
    var gid = ""
    var id = ""
}

struct ClubHomeAlertModel: Convertible {

    /// 名称
    var name = ""
    /// 类型
    var type = ""
    /// 是否开启
    var status = false
    /// 图片
    var image = ""
    var system = ""
    var sort = ""
    var id = ""
    var gid = ""
}

struct ClubHomeNormalGameTypeModel: Convertible {

    var name = ""
    var id = ""
    var isSel = false
}

struct ClubNewHomeGameModel: Convertible {

    var id = 0
    var name = ""
    var icon = ""
    var point = 0.0
    var image = ""
    var imgs = [String]()
    var biaoqian = [String]()
    var pay = ""
    var summary = ""
    var login = 0
    var type = ""
    var sort = 0 //排序，自定
    var randomInt = 0
    var borderRandomInt = 0
    var is_bbs = 0
}

struct ClubHomeGongNengModel: Convertible {

    var id = 0
    var name = ""
    var image = ""
}

struct ClubHomeInfoDetailGameModel:Convertible {

    var id = 0
    var name = ""
    var icon = ""
    var system_type_text = ""
    var content = ""
    var number = 0
    var point = 0
}

struct ClubHomeInfoBannerModel:Convertible {
    
    var name = ""
    var id = 0
    var image = ""
    var link = ""
    var sort = 0
    var gid = 0
}

struct ClubWuKongCateModel: Convertible {

    var title = ""
    var type = 0
    var isSel = false
}

struct ClubNewHomeModel: Convertible {
    
    var code: Int           = 0
    var message: String     = ""
    var slide: [ClubHomeInfoBannerModel]?
    var data: [ClubNewHomeGameModel]?
    var newgame_top: [ClubNewHomeGameModel]?
    var tuijian: [ClubNewHomeGameModel]?
    var remen: [ClubNewHomeGameModel]?
    var newgame_later: [ClubNewHomeGameModel]?
    var gongneng: [ClubNewHomeGameModel]?
}

struct ClubHomeGameModel: Convertible {
    /// 标签
    var biaoqian:[String] = []
    /// 游戏图标
    var icon = ""
    /// 游戏ID
    var id = ""
    /// 图片
    var image = ""
    /// 游戏名称
    var name = ""
    /// 评分
    var point = ""
    /// 大小
    var size = ""
    /// 分类
    var type = ""
    /// 视频
    var video = ""
    /// 是否折扣
    var zhekou = ""
    /// 充值折扣标签
    var pay = ""
    /// 排行
    var sort = 0
    
    var is_yuyue = 0
}

struct ClubHomeNormalModel: Convertible {

    var game_types:[ClubHomeNormalGameTypeModel] = [ClubHomeNormalGameTypeModel]()
    var topGames:ClubHomeNormalGameModel? = ClubHomeNormalGameModel()
    var huobao:ClubHomeNormalGameModel? = ClubHomeNormalGameModel()
    var allGames:ClubHomeNormalGameModel? = ClubHomeNormalGameModel()
    var selectIndex = 0
}

struct ClubHomeNormalGameModel: Convertible {

    var title:String = ""
    var games:[ClubHomeGameModel]? = []
}

//===============game===============
struct ClubClassifyModel: Convertible {
    
    /// banner
    var slide:[ClubClassifyGameSlideModel] = []
    /// 游戏
    var game = ClubClassifyGameListModel()
}

struct ClubClassifyGameSlideModel: Convertible {
    
    /// 轮播id
    var id = ""
    /// 名称
    var name = ""
    /// 游戏名称
    var game_name = ""
    /// 图片
    var image = ""
    /// 类型
    var type = ""
    /// 游戏ID
    var gid = ""
    /// 标签
    var biaoqian:[String] = []
    /// 大小
    var size = ""
    /// 图标
    var icon = ""
    /// 评分
    var point = ""
    
    var number = ""
}

struct ClubClassifyGameListModel: Convertible {

    var list:[ClubClassifyGameModel] = []
    /// 无数据推荐游戏
    var tuijian:[ClubClassifyGameModel] = []
    var max_p = 0
    var p = 0
}

struct ClubClassifyGameModel: Convertible {

    /// 标签
    var biaoqian:[String] = []
    /// 分类
    var fenlei = ""
    /// 图标
    var icon = ""
    /// id
    var id = ""
    /// 图片
    var image = ""
    /// 名称
    var name = ""
    /// 评分
    var point = ""
    /// 大小
    var size = ""
    /// 系统类型
    var system_type = ""
    /// 类型
    var type = ""
    /// 视频图
    var video_img = ""
    /// 视频地址
    var video_url = ""
    /// 折扣
    var zhekou = ""
    
    var pay = ""
    
    var number = ""
}


struct ClubWuKongDataModel: Convertible {

    var gid = 0
    var id = 0
    var type = 0
    var primary_id = 0
//    var data: ClubWuKongInfoModel?
    var data: ClubGameCircleModel?
}

struct ClubWuKongHotChatModel: Convertible {
    
    var code: Int           = 0
    var message: String     = ""
    var data: [ClubWuKongDataModel]?
    var banners: [ClubHomeInfoBannerModel]?
    var shequ_id = ""
}

struct ClubMessageModel: Convertible {

    var id = ""
    var name = ""
    var content = ""
    var time = ""
    var type = ""
    var read = ""
}

//MARK: ===============GAME==============
struct ClubGameDetailModel: Convertible {
    
    /// 安卓包名
    var android_package = ""
    /// 安卓下载链接
    var aurl = ""
    /// 标签
    var biaoqian:[String] = []
    var code = ""
    /// 优惠券数量
    var coupon_num = 0
    var fenxiang = ""
    /// ico
    var icon = ""
    /// ios下载链接
    var ios = ""
    var ios_bundle = ""
    /// ios plist
    var ios_plist = ""
    /// 礼包数量
    var lb_num = 0
    /// 最大优惠券
    var max_coupon = ""
    var message = ""
    /// 游戏名称
    var name = ""
    /// 评分
    var number = ""
    var paihang = ""
    /// 星级
    var point = 0.0
    /// 开服信息 直插最新一条
    var servers:ClubGameDetailServersModel = ClubGameDetailServersModel()
    var shoucang = 0
    /// 游戏收藏id
    var shoucang_id = ""
    /// 文件大小
    var size = ""
    /// 最小优惠券
    var small_coupon = ""
    var summary = ""
    /// 游戏分类
    var system = ""
    /// 游戏类型1手游 2h5 3页游
    var system_type = 0
    var tuijianzhishu = ""
    /// 类型
    var type = ""
    var uid = ""
    var zhekou = ""
    /// 群组信息
//    var groupInfoModel:ClubGameDetailGroupInfoModel = ClubGameDetailGroupInfoModel()
    /// 本地是否存在次app
    var haveBundle = false
    
    var is_heng = ""
    var orderby = ""
    var follow = ""
    var shangjia = 0
    var is_yuyue = 0
    var is_shangjia = false
    //2=停运
    var status = ""
}

struct ClubGameDetailServersModel: Convertible {
    /// 0 没有开服信息  1有开服信息
    var code = ""
    var message = ""
    var data:[ClubGameDetailServersDataModel] = []
}

struct ClubGameDetailServersDataModel: Convertible {

    var create_time = ""
    var server_id = ""
    var server_name = ""
}

struct ClubGameDetailInfoModel:Convertible {
    
    var cnlike:[ClubGameDetailCnlikeModel] = []
    var code = ""
    var content = ""
    var fuli = ""
    var imgs:ClubGameDetailImgsModel = ClubGameDetailImgsModel()
    var message = ""
    var system_type = ""
    var type = ""
    var isOpen = false
    /// 评论列表
    var commentList:[ClubGameDetailCommentListModel] = []
    var picture: ClubGameDetailMediaModel?
    /// 平台评分以及价格
    var scrapys: ClubGameDetailScrapysModel?
    /// 游戏评分
    var points: ClubGameDetailPointModel?
    /// 活动
    var actives:[ClubGameCommunityNewsModel] = []
    /// 配置
    var pzyq = ""
    /// 厂家
    var changshang = ""
    /// 上架时间
    var shangjia = ""
}

struct ClubGameDetailCnlikeModel:Convertible {

    var icon = ""
    var id = ""
    var name = ""
}

struct ClubGameDetailImgsModel:Convertible {

    var imgs:[String] = []
    var video:ClubGameDetailVideoModel = ClubGameDetailVideoModel()
}

struct ClubGameDetailVideoModel:Convertible {

    var video_pic = ""
    var video_url = ""
}

struct ClubGameDetailScrapysModel:Convertible {

    var prices: [ClubGameDetailScrapysItemModel]?
    var scores: [ClubGameDetailScrapysItemModel]?
}

struct ClubGameDetailScrapysItemModel:Convertible {

    var source_text = ""
    var id = ""
    var price = ""
    var score = ""
    var updated_at = ""
}

struct ClubGameDetailPointModel:Convertible {

    var total = 0
    var star_list = [ClubGameDetailPointItemModel]()
}

struct ClubGameDetailPointItemModel:Convertible {

    var star = 0
    var num = 0.0
}

struct ClubGameDetailMediaModel:Convertible {

    var imgs = [ClubGameDetailMediaItemModel]()
    var avatar = [ClubGameDetailMediaItemModel]()
    var play = [ClubGameDetailMediaItemModel]()
    //1 竖屏 2 横屏
    var imgs_set = ""
    var avatar_set = ""
    var play_set = ""
    var cateType = "0"
}

struct ClubGameDetailMediaItemModel:Convertible {

    var type = ""
    var path = ""
}

//=============福利=============
struct ClubGameDetailWelfareModel:Convertible {
    var id = ""
    var image = ""
    var time = ""
    var title = ""
    var type = ""
}


//=============搜索=============
struct ClubHomeGamesSearchModel:Convertible {

    var name = ""
}


//=============版本更新=============
struct ClubAppUpdateModel:Convertible {
    //是否更新
    var update = false
    //更新日志
    var update_log = ""
    //是否强制更新
    var constraint = false
}
